<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <input type="text" v-model="school.name">
    <div>{{school.name}}{{school.age}}</div>
    <div>{{school.age}}</div>
    <div>{{desc}}</div>
    <div v-html="message"></div>
    <ul>
      <li>1</li>
      <li>2</li>
    </ul>
    <button v-on:click="change"></button>
  </div>
  <!-- <script src="./vue/dist/vue.js"></script> -->
  
  <script src="./MVue.js"></script>
  <script src="./Observer.js"></script>
  <script>
    // console.log(Vue);
    var vm = new Vue({
      el: '#app',
      data: {
        school:{
          name: 'alex',
          age:'18'
        },
        message: '<h1>哈哈</h1>'
      },
      computed:{
        desc() {
          return this.school.name + '厉害'
        }
      },
      methods:{
        change() {
          this.school.age = 100
        }
      }
    });
  </script>
</body>
</html>